<?xml version="1.0" encoding="UTF-8"?>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:f="http://java.sun.com/jsf/core"
     xmlns:h="http://java.sun.com/jsf/html"
     xmlns:ui="http://java.sun.com/jsf/facelets"
     xmlns:p="http://primefaces.org/ui"
     xmlns:a="http://xmlns.jcp.org/jsf/passthrough"
     template="TemplateFrontEnd.xhtml">
<ui:define name="title">bid now</ui:define>
<ui:define name="body" >

<h:form>
 <p:messages id="messages" showDetail="true" autoUpdate="true" closable="true" />
 
	<p:panelGrid columns="2">
     
      <p:outputLabel value="desired price" />
      <p:outputLabel value="#{infoOffreMB.offre.prix_desire}" />
      
      <p:outputLabel value="Minimum bid reduction" />
      <p:outputLabel value="#{infoOffreMB.minbid}"/>
      
      <p:outputLabel value="auto reverse" />
     <p:selectOneMenu value="#{infoOffreMB.autoreverse}">
     
     <p:ajax    update="price" listener="#{infoOffreMB.onchangeAutoReverse()}"  />
      <f:selectItem itemValue="0" itemLabel="Manual" />
      <f:selectItem itemValue="1" itemLabel="automatic" />
     
     </p:selectOneMenu>
     
     <p:outputLabel value="price" />
     <p:inputText id="price" value="#{infoOffreMB.price}" />
     <p:commandButton value="ok" ajax="false" action="#{infoOffreMB.bider()}" />
     
     </p:panelGrid>

</h:form>
</ui:define>
</ui:composition>